package com.game.gameshoppingcenter.dao;

import com.game.gameshoppingcenter.entities.Comment;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentRepository extends CrudRepository<Comment,Long> {
   @Query(nativeQuery = true,value = "select * from comment")
   Comment findByContent();
   List<Comment> findAll();
}
